<div class="butler_list company list">
                    <div class="layout">
                        <div class="head">
                            <ul class="tab_header">
                                <li class="active"><a href="?ct=&city=">全部</a></li>
                                <li class=""><a href="?sort=students&ct=&city=">学习人数 &#8595;</a></li>
                                <li class=""><a href="?sort=courses&ct=&city=">课程数 &#8595;</a></li>
                            </ul>
                        </div>
                        {# 循环机构 #}
                        {% for ji in people.object_list %}      {# 分页对象.object_list里面是分页后的数据 #}
                            <dl class="des difdes">
                            <dt>
                                <a href="org-detail-homepage.html">
                                    <img width="200" height="120" class="scrollLoading"
                                         data-url="{{ MEDIA_URL }}{{ ji.image }}"/>         {# 需要拼接静态资源路径 #}
                                </a>
                            </dt>
                            <dd>
                                <div class="clearfix">
                                    <a href="org-detail-homepage.html">
                                        <h1>{{ ji.name }}</h1>
                                        <div class="pic fl">

                                            <img src="/static/images/authentication.png"/>

                                            <img src="/static/images/gold.png"/>

                                        </div>
                                    </a>
                                </div>
                                <ul class="cont">
                                    <li class="first"><p class="pic9">课程数：<span>1</span></p>
                                        <p class="c7">学习人数：<span>1000</span></p></li>
                                    <li class="c8" style="padding-left:18px;">北京市海淀区中关村北大街</li>
                                    <li class="pic10" style="padding-left:18px;">经典课程：

                                        <a href="/diary/19/">c语言基础入门</a>

                                        <a href="/diary/16/">数据库基础</a>

                                    </li>
                                </ul>
                            </dd>
                            <div class="buy start_groupbuy jsShowPerfect2" data-id="22"><br/>联系<br/>服务</div>
                        </dl>
                        {% endfor %}

                    </div>
                    <div class="pageturn">
                        <ul class="pagelist">
                            {% if people.has_previous %}                    {# 判断有上一页显示上一页 #}
                                <li class="long"><a href="?{{ people.previous_page_number.querystring }}">上一页</a></li>
                            {% endif %}

                            {% for page in people.pages %}                  {# 循环页码 #}
                                {% if page %}
                                    {% ifequal page people.number %}        {# 判断当前页码,显示当前页码 #}
                                        <li class="active"><a href="?{{ page.querystring }}">{{ page }}</a></li>
                                    {% else %}                              {# 显示其他页码 #}
                                        <li><a href="?{{ page.querystring }}" class="page">{{ page }}</a></li>
                                    {% endifequal %}
                                {% else %}
                                    ...
                                {% endif %}
                            {% endfor %}

                            {% if people.has_next %}                         {# 判断有下一页显示下一页 #}
                                <li class="long"><a href="?{{ people.next_page_number.querystring }}">下一页</a></li>
                            {% endif %}

                        </ul>
                    </div>
                </div>